export default {
  // getSwiperItem (state, data) {
  //   state.swipers = data
  // },
  getswiperItem (state, data) {
    state.swiperItem = data
  },
  getbannerItem (state, data) {
    state.bannerItem = data
  },
  getclassifyItem (state, data) {
    state.classifyItem = data
  },
  getSuccessItem (state, data) {
    state.successItem = data
  },
  getProblemItem (state, data) {
    state.problemItem = data
  },
  getTableData (state, data) { // term中的表格数据
    state.tableData = data
  },
  deleteData (state, data) { // 删除term中当前的数据
    state.tableData.forEach((item, index) => { // function(currentValue, index, arr) currentValue:当前元素 index：当前元素的索引值 arr:当前元素所属的数组对象
      if (data === item) {
        state.tableData.splice(index, 1)
      }
    })
  }
}
